//
//  JLResponse.swift
//  JLDiaryApp
//
//  Created by Jiang Chencheng on 2024/9/25.
//

import Foundation


struct JLResponse<T: Decodable>: Decodable {
    
    let code: Int
    
    let message: String
    
    let data: T?
    
}


enum JLBizError: Error {
    
    case notFound
    
    case biz(message: String, code: Int)
}
